import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listStudent(query) {
  return request({
    url: '/education/student/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getStudent(id) {
  return request({
    url: '/education/student/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addStudent(data) {
  return request({
    url: '/education/student',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateStudent(data) {
  return request({
    url: '/education/student',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delStudent(id) {
  return request({
    url: '/education/student/' + id,
    method: 'delete'
  })
}

// 用户状态修改
export function changeUserStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/education/student/changeStatus',
    method: 'put',
    data: data
  })
}